package com.jiarong.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * @author 加绒
 * @date 2021/10/29 11:12
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@ToString
public class Account {
    /**
     * 账户id
     */
    private Long accountId;

    /**
     * 账户名称
     */
    private String name;

    /**
     * 账户金额
     */
    private Double money;

    /**
     * 创建时间
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createTime;
}
